﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sundry.Model
{
    /// <summary>
    /// 商品品牌
    /// </summary>
    public class Brand
    {
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 品牌名称（唯一的）
        /// </summary>
        [StringLength(30)]
        public string Name { get; set; }
        /// <summary>
        /// 品牌图标
        /// </summary>
        [StringLength(130)]
        public string Logo { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        [StringLength(100)]
        public string Intro { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public int IsShow { get; set; }
        /// <summary>
        /// 是否推荐到首页
        /// </summary>
        public int IsRec { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        public Brand()
        {
            CreateTime = DateTime.Now;
        }
    }
}
